//
//  QXNetworking.m
//  QXBlog
//
//  Created by QinXin on 15/7/4.
//  Copyright © 2015年 labi3285_Lab. All rights reserved.
//

#import "QXNetworking.h"

@implementation QXNetworking

+ (instancetype)sharedNetworking {
    static QXNetworking *instance;
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        
        NSURL *url = [NSURL URLWithString:@"https://api.weibo.com/"];
        instance = [[QXNetworking alloc] initWithBaseURL:url];
        instance.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript", @"text/plain", nil];
        
    });
    
    return instance;
}

@end
